package com.gitee.dolt.core.util;

import com.gitee.dolt.enumeration.OptLogOut;
import com.gitee.dolt.model.OptLogDTO;
import com.gitee.dolt.event.OptLogEvent;

/**
 * @author LYH
 */
public class LogUtils {

    /**
     * 记录日志
     *
     * @param sysLog
     */
    public static void log(OptLogDTO sysLog) {
        SpringUtils.publishEvent(new OptLogEvent(sysLog, null));
    }

    /**
     * 记录日志
     *
     * @param sysLog
     */
    public static void log(OptLogDTO sysLog, OptLogOut out) {
        SpringUtils.publishEvent(new OptLogEvent(sysLog, out));
    }

}
